package com.heima.scan.config;

import com.heima.model.constants.KafkaMessageConstants;
import org.apache.kafka.clients.admin.NewTopic;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.kafka.config.TopicBuilder;

@Configuration
public class KafkaConfig {

    @Bean
    public NewTopic wmNewsAutoScanTopic() {
        return TopicBuilder.name(KafkaMessageConstants.WM_NEWS_AUTO_SCAN_TOPIC).build();
    }
}